package com.easy.slurm.exception;

import lombok.Getter;

/**
 * @author bing.bai
 * @create 2023/10/30
 */
@Getter
public class BussinessException extends RuntimeException {

    private ResultCode resultCode;

    private String msg;

    public BussinessException(String msg) {
        super(msg);
    }


    public BussinessException(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.resultCode = resultCode;
        this.msg = resultCode.getMessage();
    }
}
